<?php
namespace app\admin\controller;

use app\BaseController;
use think\facade\Env;

class Config extends BaseController
{
    public function index()
    {

        //获取配置文件的值
        $username = Env::get('database.username');
        echo $username;
        echo '<br>';

        //获取当前应用名称
        echo app('http')->getName(); //admin
        echo '<br>';

        echo root_path().'<br>';
        echo base_path().'<br>';
        echo app_path().'<br>';
        echo config_path().'<br>';
        echo runtime_path().'<br>';


        //return 'config';
    }
}
